package cn.iocoder.yudao.module.erp.controller.admin.purchasemanage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 采购管理主新增/修改 Request VO")
@Data
public class PurchaseManageSaveReqVO {

    @Schema(description = "主键", example = "8135")
    private Long id;

    @Schema(description = "关联采购计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16819")
    @NotNull(message = "关联采购计划ID不能为空")
    private Long planId;

    @Schema(description = "采购计划名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "采购计划名称不能为空")
    private String planName;

    @Schema(description = "采购计划编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "采购计划编号不能为空")
    private String purchasePlanNo;

    @Schema(description = "采购预算(万元)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "采购预算(万元)不能为空")
    private BigDecimal purchaseBudget;

    @Schema(description = "采购方式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "采购方式不能为空")
    private String purchaseMethod;

    @Schema(description = "项目理由", requiredMode = Schema.RequiredMode.REQUIRED, example = "不对")
    @NotEmpty(message = "项目理由不能为空")
    private String projectReason;

}